<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>新增项目信息</title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/js/common/bootstrap/css/bootstrap.min.css">

<!-- 可选的Bootstrap主题文件（一般不用引入） -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/js/common/bootstrap/css/bootstrap-theme.min.css">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="${pageContext.request.contextPath }/js/jquery-3.1.1.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script
	src="${pageContext.request.contextPath }/js/common/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
	<!-- 添加 -->
	<form action="http://127.0.0.1:8081/bsc/jhy/addBis_nurse_project"
		id="fo" name="fo" method="post" class="form-inline" enctype="multipart/form-data">
		<table border="0" cellspacing="0" cellpadding="10" width="80%"
			class="table ">
			<h2 align="center">新增项目信息</h2>
			<tr>
				<td width="15%" align="right">项目名称:</td>
				<td width="35%"><input type="text" id="project_name"
					name="project_name" value="" class="form-control"/></td>
				<td width="15%" align="right">状态:</td>
				<td width="35%"><select name="status" id="status"
					class="form-control">
						<option value="1">在售</option>
						<option value="2">下架</option>
				</select></td>
			</tr>
			<tr>
				<td align="right">列表图片:</td>
				<td>
				<div id="imgPreview"></div>
				<input type="file" class="form-control" onchange="PreviewImage(this)"
					 name="file1" id="file1"></td>
				<td align="right">封面图片:</td>
				<td>
				<div id="imgPreview2"></div>
				<input type="file" class="form-control" 
					 name="file2" id=""></td>
			</tr>
			<tr>
				<td align="right">分类:</td>
				<td><select name="type_id" id="type_id" class="form-control">
						<option value="">全部</option>
						<c:forEach items="${tlist }" var="type">
							<option value="${type.type_id }">${type.type_name }</option>
						</c:forEach>

				</select></td>
				<td align="right">所用设备</td>
				<td><input type="text" id="use_device" name="use_device"
					value="" class="form-control" /></td>
			</tr>
			<tr>
				<td align="right">服务时长:</td>
				<td><input type="number" id="server_time" name="server_time"
					class="form-control">分钟</td>
				<td align="right">人命币售价:</td>
				<td><input type="number" id="rmb_price" name="rmb_price"
					class="form-control">元</td>
			</tr>
			<tr>
				<td align="right">颜值售价:</td>
				<td><input type="number" id="beauty_price" name="beauty_price"
					class="form-control">个</td>
				<td align="right">标准手工费:</td>
				<td><input type="number" id="manual_price" name="manual_price"
					class="form-control">元</td>
			</tr>
			<tr>
				<td align="right">活动手工费:</td>
				<td><input type="number" id="active_price" name="active_price"
					class="form-control">元</td>
				<td align="right">排序号:</td>
				<td><input type="number" id="sort_no" name="sort_no"
					class="form-control"></td>
			</tr>
			<tr>
				<td align="right">内容描述</td>
				<td colspan="3">
				<textarea class="form-control" rows="10" cols="100" name="content" id="content"></textarea>
						
					<button class="btn btn-default" type="submit">
						<span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span> 保存
					</button></td>
			</tr>

		</table>
	</form>

</body>
</html>
 <script type="text/javascript">
 function PreviewImage(imgFile) {
	 
	          var path = window.URL.createObjectURL(imgFile.files[0]);
	          document.getElementById("imgPreview").innerHTML = "<img id='img1' width='120px' height='100px' src='" + path + "'/>";
	}

 
<!--

//-->
</script>
